package com.dd.ms.auth.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/8 17:32
 * @Description 登陆请求类
 */
@Data
@ApiModel(description = "登陆请求类")
public class LoginReq {

    @ApiModelProperty(
            value = "账户名",
            required = true,
            example = "123!@#qwe"
    )
    @NotBlank(message = "用户名不能为空")
    private String account;

    @ApiModelProperty(
            value = "密码 密码需满足复杂度要求：8-20位，包含大小写字母和数字（当前简化，只需123456即可）",
            required = true,
            example = "MyP@ssw0rd"
    )
    //@Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,20}$",
    //        message = "密码必须包含大小写字母和数字，长度8-20位")
    private String password;
}
